﻿using Max.PH5_2006.ShoppingSite.Domain;
using Max.PH5_2006.ShoppingSite.Domain.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2006.ShoppingSite.IService
{
    public interface IMemberService : IBaseService<MemberEntity, MemberEntity, MemberEntity>
    {
        (bool, string, MemberEntity) Login(MemberEntity model);
    }





    public interface IMemberAddressService : IBaseService<MemberAddressEntity, MemberAddressEntity, MemberAddressEntity>
    {
        //在添加地址的时候，还会修改其它地址为非默认
        int AddAddress(MemberAddressEntity model);

        List<MemberAddressEntity> Query(string memberId);
    }





    public interface IGoodsService : IBaseService<GoodsEntity, GoodsEntity, GoodsEntity>
    {
    }


    public interface IStoreService : IBaseService<StoreEntity, StoreEntity, StoreEntity>
    {
    }




    public interface IOrderService : IBaseService<OrderEntity, OrderEntity, OrderEntity>
    {
        Tuple<bool, string,string> OrderAdd(OrderEntity order, List<OrderDetailEntity> orderDetail);
        Tuple<bool, string> OrderPay(string orderNo, PayTypeEnum payType);
    }
    public interface IOrderDetailService : IBaseService<OrderDetailEntity, OrderDetailEntity, OrderDetailEntity>
    {
    }
}
